package com.naton.common.utils

import android.widget.Toast
import com.naton.common.ui.CommApplication

object ToastUtils {

    fun show(text: String?) {
        if (text != null)
            Toast.makeText(CommApplication.getInstance(), text, Toast.LENGTH_SHORT).show()
    }

    fun show(resId: Int) {
        if (resId > 0)
            Toast.makeText(CommApplication.getInstance(), resId, Toast.LENGTH_SHORT).show()
    }
}